package io.mybatis.example.springboot.model;

import io.mybatis.provider.Entity;
import org.apache.ibatis.type.JdbcType;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * sys_config - 参数配置表
 *
 * @author mkj
 */
@Getter
@Setter
@Entity.Table("sys_config" remark = "参数配置表", autoResultMap = true)
public class SysConfigDO {
  @Entity.Column(value = "config_id", id = true, remark = "参数主键", updatable = false, insertable = false)
  private Integer configId;

  @Entity.Column(value = "config_name", remark = "参数名称")
  private String configName;

  @Entity.Column(value = "config_key", remark = "参数键名")
  private String configKey;

  @Entity.Column(value = "config_value", remark = "参数键值")
  private String configValue;

  @Entity.Column(value = "config_type", remark = "系统内置（Y是 N否）")
  private String configType;

  @Entity.Column(value = "create_by", remark = "创建者")
  private String createBy;

  @Entity.Column(value = "create_time", remark = "创建时间", jdbcType = JdbcType.TIMESTAMP)
  private Date createTime;

  @Entity.Column(value = "update_by", remark = "更新者")
  private String updateBy;

  @Entity.Column(value = "update_time", remark = "更新时间", jdbcType = JdbcType.TIMESTAMP)
  private Date updateTime;

  @Entity.Column(value = "remark", remark = "备注")
  private String remark;

}
